
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreIntegralOrderStatuRequest struct {

	Oid string `json:"oid" form:"oid"`

	ChangeType string `json:"change_type" form:"change_type"`

	ChangeMessage string `json:"change_message" form:"change_message"`

	ChangeTime string `json:"change_time" form:"change_time"`

}

func (r *StoreIntegralOrderStatuRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreIntegralOrderStatuRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"oid": "required",

		"change_type": "required",

		"change_message": "required",

		"change_time": "required",

	}
}

func (r *StoreIntegralOrderStatuRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreIntegralOrderStatuRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreIntegralOrderStatuRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
